<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<title>示例 7 </title> 
<script> 
  // 解构嵌套数组赋值 
  let [x, [y, [z]]] = [4, [5, [6]]]; 
  console.log(x, y, z); // 4 5 6 
  </script> 
 </head> 
 <body></body> 
 </html> 